<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
					{if config('app.isdisplay.shop_set') eq 1 or config('app.isdisplay.social') eq 1 or config('app.isdisplay.email') eq 1 or config('app.isdisplay.sms') eq 1 or config('app.isdisplay.payment')}
                    <!-- 系统设置 开始 -->
                    <li class="nav-item has-treeview 
                        {switch controller}
	                        {case value="shop_set|social|email|sms|payment|infolog|send_template|logistics|system"}menu-open{/case}
	                    {/switch}
	                    {if $controller eq 'attribute' and $tabledir eq 'send_template'}menu-open{/if}
                    ">
                        <a href="#" class="nav-link 
                            {switch controller}
		                        {case value="shop_set|social|email|sms|payment|infolog|send_template|logistics|system"}active{/case}
		                    {/switch}
		                    {if $controller eq 'attribute' and $tabledir eq 'send_template'}active{/if}
	                    ">
                            <i class="fas fa-laptop-code nav-icon"></i><p>{:lang('g_system')} {:lang('v_setting')}<i class="right fas fa-angle-left mt-2"></i></p>
                        </a>
                        <ul class="nav nav-treeview">
                            {if config('app.isdisplay.shop_set') eq 1}
                        	<!--商城设置-->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/shop_set/index',['lang'=>$lang])}" class="nav-link {if $controller eq 'shop_set'}active{/if}">
                                    <i class="fas fa-cogs nav-icon fa-fw"></i>
                                    <p>
                                    	{:lang('shopv_shop')} {:lang('v_setting')}
                                    	{if $controller eq 'shop_set'}<i class="right fas fa-angle-right"></i>{/if}
                                    </p>
                                </a>
                            </li>
                            {/if}
                            {if config('app.isdisplay.social') eq 1}
                            <!--社交登录-->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/social/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="social"}active{/eq}">
                                    <i class="fab fa-qq nav-icon text-sm"></i>
                                    <p>
                                    	{:lang('v_social')} {:lang('v_login')}
                                    	{eq name="controller" value="social"}<i class="right fas fa-angle-right"></i>{/eq}
                                    </p>
                                </a>
                            </li>
                            {/if}
                            {if config('app.isdisplay.email') eq 1}
                            <!--邮件设置-->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/email/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="email"}active{/eq}">
                                    <i class="fas fa-envelope nav-icon fa-fw"></i>
                                    <p>
                                    	{:lang('v_email')} {:lang('v_setting')}
                                    	{eq name="controller" value="email"}<i class="right fas fa-angle-right"></i>{/eq}
                                    </p>
                                </a>
                            </li>
                            {/if}
                            {if config('app.isdisplay.sms') eq 1}
                            <!--短信设置-->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/sms/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="sms"}active{/eq}">
                                    <i class="fas fa-mobile-alt nav-icon fa-fw"></i>
                                    <p>
                                    	{:lang('v_sms')} {:lang('v_setting')}
                                    	{eq name="controller" value="sms"}<i class="right fas fa-angle-right"></i>{/eq}
                                    </p>
                                </a>
                            </li>
                            {/if}
                            {if config('app.isdisplay.payment') eq 1}
                            <!--在线支付-->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/payment/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="payment"}active{/eq}">
                                    <i class="fas fa-credit-card nav-icon fa-fw"></i>
                                    <p>
                                    	{:lang('v_online')} {:lang('v_payment')}
                                    	{eq name="controller" value="payment"}<i class="right fas fa-angle-right"></i>{/eq}
                                    </p>
                                </a>
                            </li>
                            {/if}
                            {if config('app.isdisplay.sms') eq 1 or config('app.isdisplay.email') eq 1}
                                <!--短信邮件模板-->
                                <?php
                                    if(config('app.isdisplay.email') == 1){
                                        $temp_type = 'email';
                                    }else{
                                        $temp_type = 'sms';
                                    }
                                ?>
                                <li class="nav-item has-treeview">
                                    <a href="{:url('/send_template/index',['lang'=>$lang,'signid'=>1,'temp_type'=>$temp_type])}" class="nav-link {if $controller eq 'send_template' or ($controller eq 'attribute' and $tabledir eq 'send_template')}active{/if}">
                                        <i class="fas fa-indent nav-icon fa-fw"></i>
                                        <p>
                                        	{:lang('v_message')} {:lang('v_template')}
                                        	{if $controller eq 'send_template' or ($controller eq 'attribute' and $tabledir eq 'send_template')}<i class="right fas fa-angle-right"></i>{/if}
                                        </p>
                                    </a>
                                </li>
                            {/if}
                            <!-- 存储设置 -->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/system/storage',['lang'=>$lang])}" class="nav-link {if $controller eq 'system'}active{/if}">
                                    <i class="fas fa-cloud-upload-alt nav-icon fa-fw"></i>
                                    <p>
                                        存储设置{if $controller eq 'system' and $action eq 'storage'}<i class="right fas fa-angle-right"></i>{/if}
                                    </p>
                                </a>
                            </li>
                            {if config('app.other.system_type') eq 'shop'}
                            <!-- 物流快递 -->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/logistics/index',['lang'=>$lang])}" class="nav-link {if $controller eq 'logistics'}active{/if}">
                                    <i class="fas fa-luggage-cart nav-icon fa-fw"></i>
                                    <p>
                                        {:lang('shopv_logistic')}{if $controller eq 'logistics'}<i class="right fas fa-angle-right"></i>{/if}
                                    </p>
                                </a>
                            </li>
                            {/if}
                        </ul>
                    </li>
                    <!-- 系统设置 结束 -->
                    {/if}
                    {if config('app.other.system_type') neq 'company'}
                    <!-- 微信公众号 开始 -->
                    <li class="nav-item has-treeview 
                        {switch controller}
                            {case value="mpweixin"}menu-open{/case}
                        {/switch}
                    ">
                        <a href="#" class="nav-link 
                            {switch controller}
                                {case value="mpweixin"}active{/case}
                            {/switch}
                        ">
                            <i class="fab fa-weixin mr-2"></i><p>{:lang('v_wechat')} {:lang('v_wechat_public')}<i class="right fas fa-angle-left mt-2"></i></p>
                        </a>
                        <ul class="nav nav-treeview">
                            <!--公众号设置-->
                            <li class="nav-item has-treeview">
                                <a href="{:url('/mpweixin/index',['lang'=>$lang])}" class="nav-link {eq name="controller" value="mpweixin"}active{/eq}">
                                    <i class="fab fa-weixin fa-fw"></i>
                                    <p>
                                        {:lang('v_wechat_public')} {:lang('v_setting')}
                                        {eq name="controller" value="mpweixin"}<i class="right fas fa-angle-right"></i>{/eq}
                                    </p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <!-- 微信公众号 结束 -->
                    {/if}